package com.github.kezhenxu94.playground.java.miscellaneous;

import org.junit.Test;

/**
 * Created by com.ikezhenxu.java.study on 12/23/14.
 */
public class NullTest {

	public static int getInt() {
		return 1;
	}

	@SuppressWarnings("static-access")
	@Test
	public void nullTest() {
		NullTest mNullTest = null;
		System.out.println(mNullTest.getInt());
	}

	@SuppressWarnings("static-access")
	@Test
	public void nullTest1() {
		System.out.println(((NullTest) null).getInt());
	}

}
